package com.qcby.llmtchstd.service.Impl;

import com.qcby.llmtchstd.dao.ErrorNoteDao;
import com.qcby.llmtchstd.entity.ErrorNote;
import com.qcby.llmtchstd.entity.Exam;
import com.qcby.llmtchstd.service.ErrorNoteService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class ErrorNoteServiceImpl implements ErrorNoteService {
    @Autowired
    private ErrorNoteDao errorNoteDao;
    @Override
    public int addError(ErrorNote errorNote) {
        return errorNoteDao.addError(errorNote);
    }

    @Override
    public List<ErrorNote> selectAll(int id) {
        return errorNoteDao.selectAll(id);
    }

    @Override
    public int deleteOne(int id) {
        return errorNoteDao.deleteOne(id);
    }

    @Override
    public int add(Exam exam) {
        return errorNoteDao.add(exam);
    }
}
